package com.legal.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 题目表
 * </p>
 *
 * @author xiaopeng
 * @since 2025-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_question")
@Schema(name = "Question", description = "题目表")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "题目编号")
    private String questionNo;

    @Schema(description = "所属分类编号")
    private String categoryNo;

    @Schema(description = "题目类型(1单选 2多选 3判断 4填空 5简答)")
    private Integer questionType;

    @Schema(description = "题目内容")
    private String content;

    @Schema(description = "选项(JSON格式，如{\"A\":\"选项A\",\"B\":\"选项B\"})")
    private String options;

    @Schema(description = "正确答案")
    private String correctAnswer;

    @Schema(description = "答案解析")
    private String explanation;

    @Schema(description = "难度(1-5)")
    private Integer difficulty;

    @Schema(description = "是否启用(1启用 0禁用)")
    private Integer isActive;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    private String updater;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
